package com.icode.gulimall.cart.service;

import com.icode.gulimall.cart.vo.CartItemVo;
import com.icode.gulimall.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @Author: my_code
 * @Email: my_code@foxmail.com
 * @Create: 2021-01-09 12:18
 */

public interface CartService {

    void addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartVo getCart() throws ExecutionException, InterruptedException;

    CartItemVo getCartItem(Long skuId);

    void changeCartItemNum(Long skuId, Integer num);

    void deleteItem(List<Long> skuId);

    void changeCartItemCheck(Long skuId, Integer check);

    List<CartItemVo> getCheckedItems();
}
